package com.maxmlr.mybatisplus.common.base.exception;

/**
 * 
 * @Package com.maxmlr.common.base.exception
 * @ClassName XmlrException
 * @Description 响应基础类
 * @author max
 * @since 2018年12月16日 下午2:15:53
 * @version 1.0
 * @Copyright Copyright (c) 2018: www.maxmlr.com.
 */
public class XmlrException extends RuntimeException {
	/** serialVersionUID */
	private static final long serialVersionUID = 1L;

	private String resultCode;
	private String errorCode;
	private String errorDesc;

	/**
	 * 
	 * @param resultCode
	 */
	public XmlrException(String resultCode) {
		super();
		this.resultCode = resultCode;
	}

	/**
	 * @param resultCode
	 * @param e
	 */
	public XmlrException(String resultCode, Exception e) {
		super(resultCode, e);
		this.resultCode = resultCode;

	}

	/**
	 * 
	 * @param resultCode
	 */
	public XmlrException(String resultCode, String errorDesc) {
		this(resultCode);
		this.errorDesc = errorDesc;
	}

	/**
	 * 
	 * @param resultCode
	 */
	public XmlrException(String resultCode, String errorCode, String errorDesc) {
		this(resultCode);
		this.errorCode = errorCode;
		this.errorDesc = errorDesc;
	}

	/**
	 * 
	 * @param resultCode
	 */
	public XmlrException(String resultCode, String errorDesc, Exception e) {
		this(resultCode, e);
		this.errorDesc = errorDesc;
	}

	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorDesc() {
		return errorDesc;
	}

	public void setErrorDesc(String errorDesc) {
		this.errorDesc = errorDesc;
	}

}
